﻿@model LeadMaster.Models.UserRoles

@{
    ViewBag.Title = "AssignUserRole";
}
<div class="spacer"></div>
<h2>Assign User Role</h2>

<div class="spacer"></div>
@using (Html.BeginForm())
{
@Html.Label("Users")
<br />
<select name="UserName" class="chzn-select" style="width:300px;">
@foreach (MembershipUser item in Model.Users)
{

<option value="@(item.UserName)">@item.UserName</option>
}
</select>
<div class="spacer"></div>
@Html.Label("Roles")   <br />
<select name="NewRole" class="chzn-select" style="width:300px;">
@foreach (string item in Model.UserRolesList)
{
<option value="@(item)">@item</option>
}
</select>
<div class="spacer"></div>
<input type="submit" value="Save New Role" />   
}

<script type="text/javascript">
    $(document).ready(function () {
        $(".chzn-select").chosen();
    });
</script>
